<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="lfn" uri="http://tags.lorizz.com/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>XXX | Image</title>
</head>
<body>
	<jsp:include page="jsp/header.jsp"/>
	<c:set var="found" value="false"/>
	<c:forEach items="${image.imageVariants}" var="imageVariant">
		<c:if test="${imageVariant.name == 'variant.middle'}">
			<img src="${lfn:externalize(imageVariant.uri)}"/><br/>
			<c:set var="found" value="true"/>
		</c:if>
	</c:forEach>
	<c:if test="${not found}">
		<img src="/resources/processing.thumbnail.middle.jpg"/><br/>
	</c:if>
	${image.filename}
	<c:if test="${not empty image.meta.map}">
		<table>
			<c:forEach var="meta" items="${image.meta.map}" varStatus="status">
				<tr>
					<td>${meta.key}</td>
					<td>${meta.value}</td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</body>
</html>